package com.hhcf.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 
 * @Title: IndexController
 * @Description:dubbo 服务提供者
 * @Author: zhaotf
 * @Since:2017年2月17日 下午2:08:42
 * @Version:1.0
 */
@Controller
@RequestMapping("/indexController")
public class IndexController {
	// @Autowired
	// private TestRegistryService testRegistryService;

	@RequestMapping("/hello")
	@ResponseBody
	public String index(Model model) {
		// String name = testRegistryService.hello("zz");
		String name = "xx==dubbo 服务端-2";
		System.out.println(name);
		return name;
	}
}
